﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="VoteItemLook.aspx.cs" Inherits="Manage_Cms_VoteItemLook" %>

<html>
<head>
    <!--#include file="../js/html_head.inc"-->
    <link rel="stylesheet" type="text/css" href="../Themes/<%=ManageHelper.GetTheme()%>/style.css" />
</head>
<body>
    <div class="column" style="width:100%;margin-left:10px;">
        <div class="columntitle">
           <font style="font-weight:bold"><%=Title %></font>（总票数：<%=Total%>）</div>
        <table cellspacing="0" cellpadding="0" rules="all" align="center" border="0" id="MyDataGrid"
            style="border-width: 0px; width: 100%; border-collapse: collapse;">
            <tr class="summary-title" style="height: 25px">
                <td align="left">标题</td>
                <td align="left" width="180">矩形图</td>
                <td align="center" width="100">比例</td>
            </tr>
            <%
                foreach (KeRui.Model.CmsVoteItem model in list)
                {
            %>
            <tr class="tdbg" onmouseover="this.className='tdbg-dark';" onmouseout="this.className='tdbg';" style="height: 25px;" align="left">
                <td align="left"><%=model.Title%></td>
                <td align="left"><div style="width:90%;background:#FFCCCC;"><span style="background:red;width:<%=getPercent(model.VoteNum, Total)%>"></span></div></td>
                <td><%=model.VoteNum %>票(<%=getPercent(model.VoteNum, Total)%>)</td>
            </tr>
            <%
                }
            %>
        </table>
    </div>
      <input type="hidden" id="txtSiteID" name="siteid" value="<%= KeRui.Common.PageRequest.GetInt("siteid",-1) %>" />
</body>
</html>